package com.article.service.ipl;

import com.article.mapper.ArticleMappertu;
import com.article.service.ApArticleConfigService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.model.atri.pojos.ApArticle;
import com.usian.model.atri.pojos.dto.ArticleHomeDto;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.common.enums.AppHttpCodeEnum;
import org.apache.commons.net.nntp.Article;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ArticleServicetu extends ServiceImpl<ArticleMappertu, ApArticle> implements com.article.service.ArticleServicetu {

    @Resource
    ArticleMappertu articleMappertu;


    @Override
    public ResponseResult applist(ArticleHomeDto articleHomeDto) {
        if (articleHomeDto==null){
          return   ResponseResult.errorResult(AppHttpCodeEnum.PARAM_INVALID);
        }
        ResponseResult applist = articleMappertu.applist(articleHomeDto);
        return applist;
    }
}
